public abstract class Compartment {
	
	private Animal animal;
	
	public abstract boolean load(Animal animal);
	
	public Animal unload() {
		Animal tempAnimal = this.animal;
		this.animal = null;
		return tempAnimal;
	}
	
	public void setAnimal(Animal animal) {
		this.animal = animal;
	}
	
	public Animal getAnimal() {
		return this.animal;
	}
}